package annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 小小唐
 * @Date 2022/7/20-星期三-9:47
 *
 * 元注解：注解其他注解
 *
 */

public class Demo2 {

    @MyAnnotation
    public void test(){

    }
}


@Target(value = {ElementType.METHOD,ElementType.TYPE})

@Retention(value = RetentionPolicy.RUNTIME)

@interface MyAnnotation{

}
